<template>
	<view class="cu-bar bg-white">
			<view class="action" @tap="gohome">
				<text class="cuIcon-locationfill text-gray"></text> 
				二丁家
			</view>
			<view class="content text-bold">
				MCAKE
			</view>
			<view class="action text-grey">
				<text class="cuIcon-search"></text>
				<u-line direction="col" length="15" margin="20upx"></u-line>
				<text class="cuIcon-sort" @tap="gocake"></text>
			</view>
		</view>
</template>

<script>
	export default {
		name:"nav-custom",
		data() {
			return {
				
			};
		},
		methods: {
			gohome() {
				uni.redirectTo({
					url:"/pages/index/index"
				})
			},
			gocake(){
				uni.redirectTo({
					url:"/pages/cake/cake"
				})
			}
		},
	}
</script>

<style scoped>
	.cu-bar{
		/* 浮动起来 */
		position: fixed !important;
		top: 0;
		left: 0;
		width: 100%;
		/* 靠上层的权重值 */
		z-index: 2;
	}
</style>